<%@ include file="/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<title>User</title>
	<link type="text/css" href="../css/ui-lightness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
</head>
<body>
<div>
	<div>
        <label><fmt:message key="user.id"/></label>
        <span><c:out value="${user.userId}"/></span>
    </div>
	<div>
        <label><fmt:message key="user.username"/></label>
        <span><c:out value="${user.name}"/></span>
    </div>
	<div>
        <label><fmt:message key="user.password"/></label>
        <span><c:out value="${user.password}"/></span>
    </div>
 	<div>
        <label><fmt:message key="user.description"/></label>
        <span><c:out value="${user.description}"/></span>
    </div>
	<div>
        <label><fmt:message key="user.phoneNo"/></label>
		<span><c:out value="${user.phoneNo}"/></span>
    </div>
	<div>
        <label><fmt:message key="user.email"/></label>
        <span><c:out value="${user.email}"/></span>
    </div>
	<div>
        <label><fmt:message key="user.createTime"/></label>
        <span><c:out value="${user.createTime}"/></span>   
    </div>
	<div>
        <label><fmt:message key="user.updateTime"/></label>
        <span><c:out value="${user.updateTime}"/></span>    
    </div>
	<br>
	<div>
		<button id="updateuser">Update</button>
		<button id="deleteuser">Delete</button>
	</div>   
</div>
<input type="hidden" id="userId"  value="${user.userId}"> 
</body>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="../js/userView.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		var userView = new UserView();
		userView.init();
	});
</script>
</html>